#ifndef QT_CORRECTED_FORMULA_H
#define QT_CORRECTED_FORMULA_H
#include "abstractformula.h"

class Qt_Correction_Formula : public AbstractFormula
{
public:
    Qt_Correction_Formula()
        :AbstractFormula(tr("Glasgow Coma Scale")){}

    /*!
    *  \brief Corrected Qt Interval
    *  Return Glasgow score
    *  \param heartRate in BPM
    *  \param qtInterval in msec
    */

    int result(int heartRate, int qtInterval)
    {
       return qtInterval / sqrt(60/heartRate);
    }
};
#endif // QT_CORRECTED_FORMULA_H
